using System;

namespace GetTogether.RichText.Sys.Logging
{

	
	internal sealed class LoggerContextDisposable : IDisposable
	{

		
		public LoggerContextDisposable( ILogger logger )
		{
			this.logger = logger;
		} // LoggerContextDisposable

		
		void IDisposable.Dispose()
		{
			if ( logger != null )
			{
				logger.PopContext();
			}
		} // Dispose

		
		// members
		private readonly ILogger logger;

	} // class LoggerContextDisposable

} 

